home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 596 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.8 KB

  1. Path: chronicle.mti.sgi.com!austern
  2. From: David Bowser-Chao <davechao@cteq07.pa.msu.edu>
  3. Newsgroups: gnu.g++.help,comp.lang.c++,comp.std.c++
  4. Subject: double& rd2 = 2.0;  // error?
  5. Date: 29 Feb 1996 10:28:45 PST
  6. Organization: High Energy Theory Group, Michigan State U.
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <3135D175.87E@cteq07.pa.msu.edu>
  9. Reply-To: davechao@cteq07.pa.msu.edu
  10. NNTP-Posting-Host: isolde.mti.sgi.com
  11. X-Original-Date: Thu, 29 Feb 1996 12:16:53 -0400
  12. X-Mailer: Mozilla 2.0b6a (Macintosh; I; 68K)
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBVAwUBMTXwbUy4NqrwXLNJAQEphAH/e5nSShgqAEa+SptONn7T/sMyH7pHhkI0
  15.     tzMgV1WuPIAPSEoHQpNC+/UlbrIEVXcSFCSKqErTY64myJ4fZGpU4A==
  16.     =YaHx
  17. Originator: austern@isolde.mti.sgi.com
  18.  
  19. Looking at the April 1995 working draft proposal,
  20. the fragment:
  21.  
  22.    double& rd2 = 2.0; 
  23.  
  24. is deemed illegal (non-const references are not initialized from 
  25. temporaries) but the GNU g++ 2.7.2 as well as the DEC VMS compiler 
  26. (current release, don't remember, as well as the version I'm 
  27. field-testing) allow this statement with a mere warning.
  28.  
  29. This seems like a very basic thing to *fix* - am I missing something 
  30. here, is this supposed to be an error, or since April has the committee 
  31. changed its mind(s)?
  32. -- 
  33. David Bowser-Chao               | http://www.pa.msu.edu/people/davechao
  34. High Energy Theoretical Physics | davechao@cteq07.pa.msu.edu
  35. Michigan State University       |
  36. (517) 432-1668                  |
  37. ---
  38. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
  39.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  40.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  41.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  42.   Comments? mailto:std-c++-request@ncar.ucar.edu 
  43. ]
  44.